package com.feng.zhongji.mapper;

import com.feng.zhongji.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

//@Mapper//如果在主类中标记了MapperScan注解，这里就不用使用Mapper注解了
@Component//这个注解可以不用添加
public interface UserMapper {
    @Select("select * from user")
    public List<User> getAllUser();
}
